package day14;

import java.util.ArrayList;
import java.util.List;

public class HeapOOM {

    /**
     * -Xms20m堆最小20M -Xmx20堆最大20M -XX:+HeapDumpOnOutOfMemoryError
     * @param args
     */
    public static void main(String[] args) {
        List<HeapOOM> heapOOMList = new ArrayList<>(90);
        while (true){
            heapOOMList.add(new HeapOOM());
        }
    }
}
